using System;
using System.Reflection;

namespace FridayShopping.Util
{
	/// <summary>
	/// Access to global variables
	/// </summary>
	public class Global
	{
		private static Settings settings;

		public static string Version = "v"+ 
			Assembly.GetExecutingAssembly().GetName().Version.ToString();

		public static string AppName = Assembly.GetExecutingAssembly().GetName().Name;

		private Global()
		{
		}

		public static Settings Settings {
			get
			{
				if (settings == null)
				{
					settings = new Settings(SettingDefaults.Values);
				}
				return settings;
			}
		}
	}
}
